//添加关注
function addFans(f){
	if(GUOGUO.checkLogin()){
		$.post("/member/addfans.htm",{follow:f,each:1},function(data){
			var html='';
			if(data=="each_gz_success"){
				html='<p class="already_gz"><img src="/images/v4/other/icon_7.png"/>&nbsp;相互关注 | <a href="javascript:void(0)" class="cancl" onclick="cancelFans(\''+f+'\');">取消</a></p>';
				$("#div_gz_fans_"+f).html(html);
			}else if(data=="success"){
				html='<a href="javascript:void(0)" class="cancl" onclick="cancelFans(\''+f+'\');">取消</a>';
				$("#div_gz_fans_"+f).html(html);
			}
		});
	}else{
		GUOGUO.memberLogin();
	}
}

//取消关注
function cancelFans(f){
	if(GUOGUO.checkLogin()){
		$.post("/member/cancelfans.htm",{follow:f},function(data){
			if(data=="success"){
				$("#div_gz_fans_"+f).html('<a href="javascript:void(0)" class="add_gz" onclick="addFans(\''+f+'\');"><i>+</i>关注</a>');
			}
		});
	}else{
		GUOGUO.memberLogin();
	}
	
}
function cancelFollowFans(f){
	$.post("/member/cancelfans.htm",{follow:f},function(data){
		if(data=="success"){
			$("#li_gz_fans_"+f).remove();
		}
	});
}